package com.qf.feign.api;

import com.qf.vo.StockParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "goods", path = "/goods")
public interface StockServer {

    /**
     * 扣减库存
     *
     * @param list 需要扣减的库存对象
     * @return 是否扣减成功
     */
    @RequestMapping("/lockGoodsStock")
    public Boolean lockGoodsStock(List<StockParam> list);
}
